//
//  IMCellConfig.m
//  ChatMainDemo
//
//  Created by peiw on 16/1/21.
//  Copyright © 2016年 peiw. All rights reserved.
//

#import "IMCellConfig.h"

@implementation IMCellConfig

- (void)setType:(IMCellConfigType)type {
    _type = type;
    switch (type) {
        case BubbleLeft:
            self.insets = UIEdgeInsetsMake(0, 0, 0, 0);
            break;
        case BubbleRight:
            self.insets = UIEdgeInsetsMake(0, 6, 0, 6);
            break;
            
        default:
            break;
    }
}

@end
